Skip to content

fix(auth): preserve existing refresh_token when server omits it#2276

Closed
Jah-yee wants to merge 1 commit intomodelcontextprotocol:mainfrom
Jah-yee:fix/refresh-token-v2
Closed

fix(auth): preserve existing refresh_token when server omits it#2276
Jah-yee wants to merge 1 commit intomodelcontextprotocol:mainfrom
Jah-yee:fix/refresh-token-v2

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 11, 2026

Per RFC 6749 Section 6, issuing a new refresh token in the refresh response is optional. When the authorization server does not return a new refresh_token, the previously stored refresh_token is now preserved instead of being discarded.

Fixes: #2270

Per RFC 6749 Section 6, issuing a new refresh token in the refresh
response is optional. When the authorization server does not return a
new refresh_token, the previously stored refresh_token is now preserved
instead of being discarded.

Fixes: modelcontextprotocol#2270
@maxisbey maxisbey closed this Mar 11, 2026
@maxisbey
Copy link
Contributor

Please do not open a duplicate PR immediately after I close your previous PR: #2274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_handle_refresh_response discards existing refresh_token when server omits it

2 participants